<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            height: 200px;
            width: 200px;
        }
        #div1{
            background-color: aquamarine;
            /* 相对定位 */
            /* position: relative;
            top: 100px; */
        }
        #div2{
            background-color:cadetblue ;
            position: relative;
            top: 100px;
        }
        #div3{
            background-color: blueviolet;
        }
    </style>
    
</head>
<body>
    <div id="div1"></div>
    <div id="div2"></div>
    <div id="div3"></div>
</body>
</html>